let JsonMerge = require('./index.js')

let json1 = {
	name: 'json1',
	data2: 1,
	data4: {
		cn: 1,
		zz: [1,2,3]
	}
}
let json2 = {
	name: 'json2',
	data2: 2,
	data3: 3,
	data4: {
		cn: 2,
		en: 4,
		zz: [4,5,6],
		zz2: [4,5,6],
		zz3: json1
	}
}
json1.data4.zz4 = json2

console.log(JsonMerge(json1,json2));